import time

import yaml
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from ..utils.Loguru import logger
from src.main.page.base_page import base_page
from src.main.page.contact_page import Contact_page

class Main_page(base_page):

    def __init__(self,driver=None):
        super().__init__(driver)

    def goto_contact(self):
        _contact_page_locate = (By.XPATH,"//*[@id='menu_contacts']")

        self.find_ele_is_presence(_contact_page_locate).click()
        # time.sleep(8000)
        return Contact_page(self.driver)


if __name__ == '__main__':
    Main_page().goto_contact()